package OneArray;

import java.util.Arrays;

public class ArrayPractise {
    public static void main(String[] args) {
        String str = "ffagar612h5arg46r5";
        /*
        如何进行升序排列:sort
        必须是一个数组，才能用Arrays.sort方法
        String -->数组，用toCharArray
        * */
        char[] chars = str.toCharArray();
        Arrays.sort(chars);

        for (int i = chars.length - 1; i >= 0; i--) {
            System.out.println(chars[i]);
        }
    }
}
